package com.woniuxy.owner.feign;

import com.woniuxy.common.dto.WcmBuildingDto;
import com.woniuxy.common.dto.WcmCommunityDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "infrastructure-server")
public interface BuildingFeign {

    @GetMapping("/building/all")
     List<WcmBuildingDto> getAllBuildings();
    @GetMapping("/community/all")
    List<WcmCommunityDto> getAllCommunities();


}